<div style="padding: 0.1em 0 0.1em 0.3em; background-color: #FFD700">

    <h1>File Upload</h1>
    <% form_tag({:controller => 'documents', :action => 'uploadFile'}, :multipart => true) do %>

        <div style="display: table">
            <div style="display: table-row">
                <div style="display: table-cell">
                    <p><label for="upload_file">Select File</label>:
                </div>
                <div style="display: table-cell">
                    <%= file_field 'upload', 'datafile' %></p>
                </div>
            </div>
            <div style="display: table-row">
                <div style="display: table-cell">
                    Title:
                </div>
                <div style="display: table-cell">
                    <%= text_field "upload" , "title", :maxlength => 30 %>
                </div>
            </div>
            <div style="display: table-row">
                <div style="display: table-cell">
                    Date created (not necessarily today's date!):
                </div>
                <div style="display: table-cell">
                    <%= text_field "upload" , "date", :value => Date.today.strftime("%Y-%m-%d"), :maxlength => 10 %>
                </div>
            </div>
            <div style="display: table-row">
                <div style="display: table-cell">
                    Type:
                </div>
                <div style="display: table-cell">
                    <%= select "upload", "doc_type",
                        {
                            "Pledge Meeting Minutes" => "0",
                            "Active Meeting Minutes" => "1",
                            "Exec Meeting Minutes" => "2",
                            "Budget" => "3",
                            "Governing Documents" => "4",
                            "SRC" => "5",
                            "Officer Report" => "6",
                            "Other" => "7"
                        }.sort
                    %>
                </div>
            </div>
        </div>
        <br>
        <br>

        <%= submit_tag "Upload" %>

    <% end %>

</div>
